import { createRouter, createWebHistory } from 'vue-router'

import Index from '@/views/index.vue'
import Sy from '@/views/sy.vue'
import Gwc from '@/views/gwc.vue'
import Fl from '@/views/fl.vue'
import Wd from '@/views/wd.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/index/sy' },
    {
      path: '/index',

      component: Index,
      children: [
        {
          path: 'sy',

          component: Sy,
        },
        {
          path: 'gwc',

          component: Gwc,
        },
        {
          path: 'fl',

          component: Fl,
        },
        {
          path: 'wd',

          component: Wd,
        },
      ]
    },

  ],
})

export default router
